package com.gccloud.tgyfirst.service.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Configuration;

/**
 * @author qianxing
 * @version 1.0
 * @date 2021/5/18 9:37
 */
@Configuration
@ConfigurationProperties(prefix = "gc.starter")
@Data
public class DemoConfig {


    /**
     * 用于下载上传文件的路径
     */
    @NestedConfigurationProperty
    private String filePath;

    /**
     * 模拟下载的文件名
     */
    @NestedConfigurationProperty
    private String fileName;
}
